#include "returnedbook.h"

ReturnedBook::ReturnedBook() {}


ReturnedBook::ReturnedBook(const QString &name, const QString &publisher,
                           const QString &author, const QString &ISBN,
                           const QString &category, const QString &collectionLocation,
                           int currentCollection, int allCollection,
                           const QDate&loanTime,QCheckBox*checkBox,const QDate &returnTime):BorrowedBook(name,publisher,author,ISBN,category,
                   collectionLocation,currentCollection,
                   allCollection,loanTime,checkBox),returnTime(returnTime)
{
}

QDate ReturnedBook::getReturnTime() const
{
    return returnTime;
}

void ReturnedBook::setReturnTime(const QDate &newReturnTime)
{
    returnTime = newReturnTime;
}

ReturnedBook::~ReturnedBook(){

}
